package com.zhang.springbootdemo.mapper;

import com.zhang.springbootdemo.pojo.Employee;
import com.zhang.springbootdemo.vo.DepEmp;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EmployeeMapper {
    //增
    public boolean addEmp(Employee emp);
    //删
    public boolean delEmpByid(Integer eId);
    //改
    public boolean editEmp(Employee emp);
    //查
    List<Employee> selEmp();
    //查询所有
    public List<DepEmp> selAll();
    //通过id查询
    public DepEmp selAllById(Integer eId);
    //修改
    boolean editEmps(DepEmp depEmp);

    List selEmps(Employee employee);
}
